<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common">
    <xsl:template name="PNENGINE">
        <xsl:param name="token.xml"/>
        
        <xsl:for-each select="exsl:node-set($token.xml)//place[@id='pl16']">
            <data>
                <case_id><xsl:copy-of select="document(.)/data/case_id" /></case_id>
                <request_text><xsl:copy-of select="document(.)/data/request_text" /></request_text>
            </data>
        </xsl:for-each>
        
        <xsl:for-each select="exsl:node-set($token.xml)//place[@id='pl6']">
            <data>
                <case_id><xsl:copy-of select="document(.)/data/case_id" /></case_id>
            </data>
        </xsl:for-each>
        
    </xsl:template>
</xsl:stylesheet>
